package com.twetec.cms.model.vo.system;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author wugaojian
 * @date 2022/2/9 16:03
 */
@ApiModel
public class CmsUserRoleVO implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "用户和角色关联表id", example = "15648564")
    private Long  id;

    @ApiModelProperty(value = "用户名称", example = "张三")
    private String name;

    @ApiModelProperty(value = "手机号", example = "13XXXXX")
    private String telephone;

    @ApiModelProperty(value = "证件类型 身份证:ID_CARD 护照:PASSPORT_CARD 资格证:QUALIFICATION_CARD 其他:OTHER_CARD", example = "ID_CARD")
    private String credentialType;

    @ApiModelProperty(value = "证件号码", example = "350524XXXX")
    private String credentialNumber;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCredentialType() {
        return credentialType;
    }

    public void setCredentialType(String credentialType) {
        this.credentialType = credentialType;
    }

    public String getCredentialNumber() {
        return credentialNumber;
    }

    public void setCredentialNumber(String credentialNumber) {
        this.credentialNumber = credentialNumber;
    }

    @Override
    public String toString() {
        return "CmsUserRoleVO{" +
                "name='" + name + '\'' +
                ", telephone='" + telephone + '\'' +
                ", credentialType='" + credentialType + '\'' +
                ", credentialNumber='" + credentialNumber + '\'' +
                '}';
    }
}
